<template>
	<view class="page-box">
		<view class="page-title">
			<view class="title-text">{{projectName}}</view>
			<!-- <view class="title-icon">
				<image src="../../static/images/icon_menu_04.png" mode=""></image>
				<view class="icon-right">历史送报</view>
			</view> -->
		</view>
		<!-- <view class="page-tag">综合评审</view> -->
		<view class="page-form">
			<view class="form-item" v-for="item,index in pageData">
				<view class="item-title">
					<view class="title-name">{{item.CREATE_UNAME}}</view>
					<view class="title-time">{{item.CREATE_TIME}}</view>
				</view>
				<view class="item-content">
					{{item.OPINION}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				projId:'',
				pageData:[],
				projectName:''
			}
		},
		methods: {
			
			async getData(id){
				const formData = {
					pageSize:999,
					pageNo:1,
					sortOrder: 'asc',
					projId:id
				}
				uni.showLoading({
					
				})
				const ret = await this.$req({
					url:'bus/opinion/ajaxSearch.do',
					data:formData
				})
				uni.hideLoading()
				if(ret.data.success){
					this.pageData= ret.data.attributes.rows
				}
			}
		},
		onLoad(options){
			//bus/opinion/ajaxSearch.do
			console.log('options',options)
			this.getData(options.projId)
			this.projectName = options.projectName;
		
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #e9f0f2;
	}
	.page-box{
		margin: 20rpx 30rpx;
		padding: 38rpx 30rpx;
		width: 690rpx;
		background-color: #ffffff;
		border-radius: 20rpx;
		.page-title{
			display: flex;
			justify-content: space-between;
			align-items: center;
			.title-text{
				font-family: Alibaba-PuHuiTi-B;
				font-weight: 700;
				font-size: 30rpx;
				color: #414a5d;
			}
		}
		.page-tag{
			width: 120rpx;
			height: 30rpx;
			margin-top: 14rpx;
			font-size: 24rpx;
			line-height: 30rpx;
			text-align: center;
			background-color: #00ac0c;
			border-radius: 4rpx;
			color: #FFFFFF;
		}
		.page-form{
			margin-top: 32rpx;
			// padding: 0 40rpx;
			.form-item{
				font-size: 26rpx;
				margin-bottom: 20rpx;
				.item-title{
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					
					.title-name{
						color: #414a5d;
					}
					.title-time{
						color: #9a9a9a;
					}
				}
				.item-content{
					padding: 0 20rpx;
					margin-top: 10rpx;
				}
			}
		}
		
	}
</style>
